package com.example.dingtalkwebproject.mapper;

import com.example.dingtalkwebproject.pojo.vo.rejectReportedVO;
import com.example.dingtalkwebproject.pojo.wBlShipHd;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface wBlShipHdMapper {
    // 添加残次信息
    int insertShipHdInfo(wBlShipHd wBlShipHd);

    // 区域经理驳回将门店信息修改为未确认
    int updateShipHdByBillId(rejectReportedVO rejectReportedVO);

    // 根据单号获取当前残次单信息
    wBlShipHd selectShipInfoByBillId(String billId);

    // 根据残次单号更新当前状态 督导审核 区域经理审核
    int updateShipHdStatusByBillId(String billId);


    // 采购人员驳回
    int procurementRejectUpdateShipHdByBillId(rejectReportedVO rejectReportedVO);

    // 采购人员审核通过
    int procurementApprovalUpdateShipHdByBillId(rejectReportedVO reportedVO);


    // 如果是邮寄到门店 那么就更新当前物流单号字段
    int updateWlInfoByBillId(rejectReportedVO rejectReportedVO);

    // 根据物流单号更新当前门店
    int updateWlBillIdByBillId(rejectReportedVO reportedVO);

    // 风控完成终审的拒绝通过
    int riskUpdateStatusByBillId(rejectReportedVO reportedVO);

    // 风控完成终审的审核通过
    int riskApprovalStatusByBillId(rejectReportedVO reportedVO);

    // 更新报废视频
    int updateScrapVideoByBillId(rejectReportedVO reportedVO);

    // 根据编号更新当前残次单状态
    int updateBfStatusByBillId(rejectReportedVO reportedVO);

    // 根据门店残次单号更新当前

}
